package com.beichuan_travel.service.impl;

import com.beichuan_travel.mapper.HomePageMapper;
import com.beichuan_travel.model.vo.AdvertisementVO;
import com.beichuan_travel.service.HomePageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomePageServiceImpl implements HomePageService {

    @Resource
    HomePageMapper homePageMapper;

    @Override
    public List<AdvertisementVO> getAdvertisementBanner(int number) {
        List<AdvertisementVO> voList = homePageMapper.queryAdvertisement(number);
        return voList;
    }
}
